import http from '@/utils/http'

// 获取订单信息
export const getOrder = () => http({ url: '/member/order/pre' })

// 提交订单

// 创建订单
export const createOrder = (data) => http({ url: '/member/order', method: 'POST', data })

/*
params: {
	orderState:0,
  page:1,
  pageSize:2
}
*/

export const getUserOrder = (params) => http({ url: '/member/order', method: 'GET', params })

// 添加地址
export const getAdress = (data) => http({ url: '/member/address', method: 'POST', data })

// 删除地址
export const delAdress = (id) => http({ url: `/member/address/${id}`, method: 'DELETE' })
